﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="messageInfoEdit.aspx.cs" Inherits="LGSVR_WEB.program.messageInfoEdit" %>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>系统参数编辑</title>
    <link href="/skins/default/css/web.css" rel="stylesheet" type="text/css" />
    <script src="/skins/default/js/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="/skins/default/js/common.js" type="text/javascript"></script>
    <script src="../calendar/WdatePicker.js" type="text/javascript"></script>
    <script type="text/javascript">
    function CustomSubmit() 
    {  
//    var form = document.getElementById('<%=theForm.ClientID%>');
        if (confirm('已存在该节目编号，确认要覆写么？')) 
        {
//            document.getElementById('<%=btnretSave.ClientID%>').Visible = "true";
            document.getElementById('<%=btnretSave.ClientID%>').click();
//            document.getElementById('<%=btnretSave.ClientID%>').Visible = "false";
         }
    }
    function CheckSave() {
        if (document.getElementById('ddlgroupID').value == "") {
            alert("请选择信息所属组!");
            document.getElementByIdx("ddlgroupID").focus();
            return false;
        }
        if (document.getElementById('ddlactID').value == "")
        {
            alert("请选择节目编号!");
            document.getElementByIdx("ddlactID").focus();
            return false;
        }
    }
    </script>   

</head>
<body>
    <div id="ClientMsg"><%=MsgContent%></div>
    <form runat="server" id="theForm">
    <div id="MainBody">
        <div class="editnav">
            位置： <a href="messageInfoMain.aspx">节目信息管理</a>&nbsp;&nbsp;>>&nbsp;&nbsp;<span class="current">节目信息编辑</span></div>
        <table class="edittb" cellpadding="0" cellspacing="0">
            <tr>
                <td class="first">信息所属组：</td>
                <td>
                    <asp:DropDownList runat="server" ID="ddlgroupID" Width="300px" 
                        onselectedindexchanged="ddlgroupID_SelectedIndexChanged" AutoPostBack="true"></asp:DropDownList>
                </td>
                 <td class="first">信息所属分区：</td>
                <td>
                     <asp:DropDownList runat="server" ID="ddlareaID" Width="300px"></asp:DropDownList>
                  <%--  <asp:TextBox ID="txtareaID" runat="server"  onkeyup="IsNumeric(this)"></asp:TextBox>--%>
                </td>
               
            </tr>
               
            <tr>
             <td class="first">所属公司：</td>
                <td>
                 <asp:DropDownList runat="server" ID="ddlcompanyID" Width="300px"></asp:DropDownList>
                  <%--  <asp:TextBox ID="txtcompanyID" runat="server"></asp:TextBox>--%>
                </td>
                <td class="first">信息标题：</td>
                <td>
                    <asp:TextBox ID="txtmessageTitle" runat="server"></asp:TextBox>
                </td>
               
            </tr>
             <tr>
              <td class="first">节目编号：</td>
                <td>
                   <asp:DropDownList runat="server" ID="ddlactID" Width="300px"></asp:DropDownList>
                 <%--   <asp:TextBox ID="txtactID" runat="server"></asp:TextBox>--%>
                </td>
                <td class="first">百叶窗叶片宽度：</td>
                <td>
                <asp:TextBox ID="txtpixWidth" runat="server" onkeyup="IsNumeric(this)"></asp:TextBox>
                   
                </td>
            </tr>  
            
            <tr>
              <td class="first">进入方式：</td>
                <td>
                   <asp:DropDownList runat="server" ID="ddlinType" Width="300px"></asp:DropDownList>
               <%--     <asp:TextBox ID="txtinType" runat="server"></asp:TextBox>--%>
                </td>
                <td class="first">退出方式：</td>
                <td>
                 <asp:DropDownList runat="server" ID="ddloutType" Width="300px"></asp:DropDownList>
              <%-- <asp:TextBox ID="txtoutType" runat="server"></asp:TextBox>
                   --%>
                </td>
               
            </tr>
             
               <tr>
              <td class="first">进入速度：</td>
                <td>
                    <asp:TextBox ID="txtinSpeed" runat="server" onkeyup="IsNumeric(this)"></asp:TextBox>毫秒/像素
                </td>
                <td class="first">退出速度：</td>
                <td>
               <asp:TextBox ID="txtoutSpeed" runat="server" onkeyup="IsNumeric(this)"></asp:TextBox>毫秒/像素
                   
                </td>
               
            </tr>
              <tr>
              <td class="first">停留时间：</td>
                <td>
               
              
                    <asp:TextBox ID="txtstayTime" runat="server" onkeyup="IsNumeric(this)"></asp:TextBox>毫秒
                </td>
                <td class="first">重复播放次数：</td>
                <td>
               <asp:TextBox ID="txtreplayTimes" runat="server"  onkeyup="IsNumeric(this)"></asp:TextBox>
                   
                </td>
               
            </tr>
             <tr>
              <td class="first">起始时间：</td>
                <td>

                   <input id="txtBeginTime" type='text' style='width: 160px'  class="Wdate" onfocus="new WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})" runat="server" />
                </td>
                <td class="first">终止时间：</td>
                <td>
              
                   <input id="txtEndTime" type='text' style='width: 160px'  class="Wdate" onfocus="new WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})" runat="server" />
                   
                </td>
               
            </tr>
             <tr>
              <td class="first">最后发生时间：</td>
                <td>

                  <input id="txtLastSendTime" type='text' style='width: 160px'  class="Wdate" onfocus="new WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd HH:mm:ss'})" runat="server" />
                <%--    <asp:TextBox ID="txtLastSendTime" runat="server"></asp:TextBox>--%>
                </td>
                <td class="first">发送次数：</td>
                <td>
               <asp:TextBox ID="txtSendTimes" runat="server" onkeyup="IsNumeric(this)"></asp:TextBox>
                   
                </td>
               
            </tr>
              <tr>
                <td class="first">内容：</td>
                <td colspan="3"><asp:TextBox ID="txtmessageTxt" TextMode="MultiLine" style=" width:100%; height:80px;" runat="server"></asp:TextBox></td>
          
            </tr>
            <tr>
                <td class="first">描述：</td>
                <td colspan="3"><asp:TextBox ID="txtcontent" TextMode="MultiLine" style=" width:100%; height:40px;" runat="server"></asp:TextBox></td>
          
            </tr>
    </table>
    </div>
    <div class="clear">
    </div>
    <div class="btnEdit">
        <asp:Button ID="btnSave" runat="server" Text="添 加" OnClientClick="return CheckSave()"  OnClick="btnSave_Click" />
        <asp:Button ID="btnBack" runat="server" Text="返 回" onclick="btnBack_Click" />
          <asp:Button ID="btnretSave" runat="server" onclick="btnretSave_Click" Height="0" Width="0" style="display:none" />
    </div>
     <input type="hidden" id="hID" name="hName" />  
    <asp:Literal ID="lit" runat="server"></asp:Literal>               
    </form>
</body>
</html>
